package com.teach;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-02 9:43
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Person {

  /**
   * 性别
   */
  public String name;

  /**
   * 性别
   */
  public Character sex;

  /**
   * 年龄
   */
  private Integer age;

  /**
   * 体重
   */
  private Integer weight;

  /**
   * 身份证号码
   */
  protected String idcard;


  public Person(String name, Character sex, Integer age, Integer weight, String idcard) {
    super();
    this.name = name;
    this.sex = sex;
    this.age = age;
    this.weight = weight;
    this.idcard = idcard;
  }

  public Person() {
    System.out.println("使用无参构造方法构造了Person");
  }

  @Override
  public String toString() {
    return "Person [name=" + name + ", sex=" + sex + ", age=" + age + ", weight=" + weight + ", idcard=" + idcard
        + "]";
  }

  public void eating(){
    System.out.println(name+"吃饭");
  }

  public void sleep(){
    System.out.println(name+"睡觉");
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Character getSex() {
    return sex;
  }

  public void setSex(Character sex) {
    this.sex = sex;
  }

  public Integer getAge() {
    return age;
  }

  public void setAge(Integer age) {
    this.age = age;
  }

  public Integer getWeight() {
    return weight;
  }

  public void setWeight(Integer weight) {
    this.weight = weight;
  }

  public String getIdcard() {
    return idcard;
  }

  public void setIdcard(String idcard) {
    this.idcard = idcard;
  }

}
